﻿using System;
using System.Collections.Generic;
using BAL.Controller;
using System.Linq;
using System.Text;
using DAL_V1.App_Code.DBBroker;
using EntityObjects;

namespace BAL.Controller
{
    public class DepartmentControl
    {
        DepartmentDBBroker depRef;
        public DepartmentControl()
        {
            depRef = DepartmentDBBroker.getDepartmentDBBroker();
        }
        public int updateDepartment(Department dept, String Id)
        {
            int val = 0;
            val = depRef.updateDepartment(dept, Id);
            return val;
        }
        public Department selectDepartment(String Id)
        {
            Department dep = new Department();
            dep = depRef.selectDepartment(Id);
            return dep;
        }
    }
}
